﻿<div class="layui-container fly-marginTop">
    <div class="fly-panel fly-panel-user">
        <!--登录注册的Tab-->
        <div class="layui-tab layui-tab-brief">

            <!--选项卡的标题-->
            <ul class="layui-tab-title">
                <li>
                    <a href="@Url.Action("Login")">登录</a>
                </li>
                <li class="layui-this">
                    注册
                </li>
            </ul>

            <!--选项卡内容区域-->
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    @using (Ajax.BeginForm("Register", "Account", new AjaxOptions()
                    {
                        OnBegin="onBegin",
                        OnFailure="onFailure",
                        OnSuccess="onSuccess",
                        OnComplete="onRegisterComplete"
                    }))
                    {
                        <div class="layui-form layui-form-pane">
                            <div class="layui-form-item">
                                <label class="layui-form-label" for="txt_NickName">昵称</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="NickName" class="layui-input" id="txt_NickName" autocomplete="off" lay-verify="required" />
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label" for="txt_PhoneNumber">手机号码</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="PhoneNumber" class="layui-input" id="txt_PhoneNumber" autocomplete="off" lay-verify="required|phone" />
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label" for="txt_Email">邮箱</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="Email" class="layui-input" id="txt_Email" autocomplete="off" lay-verify="required" />
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label" for="txt_Password">密码</label>
                                <div class="layui-input-inline">
                                    <input type="password" name="Password" id="txt_Password" class="layui-input" autocomplete="off" lay-verify="required" />
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label" for="txt_ConfirmPassword">确认密码</label>
                                <div class="layui-input-inline">
                                    <input type="password" name="ConfirmPassword" class="layui-input" id="txt_ConfirmPassword" autocomplete="off" lay-verify="required" />
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <button class="layui-btn" lay-submit>注册</button>
                            </div>
                        </div>
                    }

                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    layui.cache.module={
        moduleName:'account',
        pageName:'register'
    }
</script>